#! /bin/bash

# Add Eudora to list of mail handlers in Menu > Preferences > Prefered Applications

# Launcher
rm -f "$HOME/bin/eudora"

# Icons
rm -f "$HOME/.local/share/icons/hicolor/16x16/apps/eudora.png"
rm -f "$HOME/.local/share/icons/hicolor/32x32/apps/eudora.png"
rm -f "$HOME/.local/share/icons/hicolor/48x48/apps/eudora.png"

# Desktop
rm -f "$HOME/.local/share/applications/eudora.desktop"

# Prefered Applications list
sudo rm -f "/usr/share/gnome-control-center/default-apps/eudora.xml"

# URI Handler
#gconftool -t string -s /desktop/gnome/url-handlers/mailto/command 'eudora %s'
#gconftool -t bool -s /desktop/gnome/url-handlers/mailto/needs_terminal false
#gconftool -t bool -s /desktop/gnome/url-handlers/mailto/enabled true

find "$HOME"/.local/share -type d -empty -delete

